package show_path

import (
	"fmt"
	"github.com/gofiber/fiber/v2"
)

type Config struct {
	Name string
	Next func(*fiber.Ctx) bool
}

// ShowUrls New ... 打印所有的可用服务的path和method
func ShowUrls(app *fiber.App) {
	for _, item1 := range app.Stack() {
		for _, item2 := range item1 {
			fmt.Print(item2.Method, "\t\t : ")
			fmt.Println(item2.Path, "\t\t")

		}
	}
}